package com.teamclub.base.sservices.storage

import java.nio.file.Path
import java.util.stream.Stream

import org.springframework.core.io.Resource
import org.springframework.web.multipart.MultipartFile

/**
  * Created by ilkkzm on 17-6-23.
  */
trait StorageService {
  def init(): Unit
  def store(multipartFile: MultipartFile)
  def loadAll(): Stream[Path]
  def load(filename: String): Path
  def loadAsResource(filename: String): Resource
  def deleteAll(): Unit
}
